﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using CallCenter.DAL;
using Maticsoft.Model;

namespace CallCenter.BLL
{
    partial class CustomerBLL
    {
        CustomersDAL dal = new CustomersDAL();
        public bool AddNew(CustomersModel model)
        {
            int i = dal.AddNew(model);
            if (i > 0)
            {
                return true;
            }
            else
            {
                return false;
            }
        }

        public CustomersModel[] ListAll()
        {
            return dal.GetAll();
        }
    }
}
